<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml" xmlns:shiro="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="col-sm-12">
			<div class="ibox">
				<div class="ibox-body">
					<div class="fixed-table-toolbar">
						<div class="columns pull-left">
							<button shiro:hasPermission="pay:payQrConfig:add" type="button" class="btn  btn-primary" onclick="add()">
								<i class="fa fa-plus" aria-hidden="true"></i>添加
							</button>
							<button shiro:hasPermission="pay:payQrConfig:add" type="button" id="moneyAmountFile"  class="btn  btn-primary"
									>
								<i class="fa fa-plus" aria-hidden="true"></i>批量添加(EXECL)
							</button>
							<button shiro:hasPermission="pay:payQrConfig:add" type="button" id="moneyAmountFileZip"
									class="btn  btn-primary"
							>
								<i class="fa fa-plus" aria-hidden="true"></i>批量添加(图片)
							</button>
						</div>
						<div class="columns pull-right">
							<button class="btn btn-success" onclick="reLoad()">查询</button>
						</div>
						<div class="columns pull-right col-md-2 nopadding">
							<input id="accountName" type="text" name="accountName" class="form-control" th:value="${accountName}"
								   th:readonly = "${accountName}"
								placeholder="卖家旺旺昵称">
						</div>
						<div class="columns pull-right col-md-2 nopadding">
							<input id="money" type="text" name="money" class="form-control"
								   th:value="${money}"
								   th:readonly = "${money}"
								   placeholder="金额">
						</div>
						<div class="columns pull-right col-md-2 nopadding">
							<input id="accountNo" type="text" name="accountNo" class="form-control"
								   th:value="${accountNo}"
								   th:readonly = "${accountNo}"
								   placeholder="订单号">
						</div>
					</div>
					<table id="exampleTable" data-mobile-responsive="true">
					</table>
				</div>
			</div>
		</div>
	</div>
	<!--shiro控制bootstraptable行内按钮看见性 来自bootdo的创新方案 -->
		<div>
			<script type="text/javascript">
				var s_edit_h = 'hidden';
				var s_remove_h = 'hidden';
				var s_upload_h = "hidden";
				var s_batch_oerate = 'disabled';

			</script>
		</div>
		<div shiro:hasPermission="pay:payQrConfig:edit">
			<script type="text/javascript">
				s_edit_h = '';
			</script>
		</div>
		<div shiro:hasPermission="pay:payQrConfig:remove">
			<script type="text/javascript">
				var s_remove_h = '';
			</script>
		</div>
		<div shiro:hasPermission="pay:payQrConfig:upload">
			<script type="text/javascript">
				s_upload_h = '';
			</script>
		</div>
	</div>
	<script th:inline="javascript">

	</script>
	<div th:include="include :: footer"></div>
	<script type="text/javascript" src="/js/appjs/pay/payQrConfig/payQrConfig.js"></script>
	<script type="text/javascript" src="/js/jquery.selectBoxIt.min.js"></script>
	<script type="text/javascript" src="/js/numeral.min.js"></script>
	<script type="text/javascript" src="/js/bootstrap-datetimepicker.min.js"></script><!-- 日期框 -->
	<script type="text/javascript" src="/js/bootstrap-datetimepicker.zh-CN.js"></script><!-- 日期框 -->

	<script type="text/javascript" src="/js/plugins/fileinput/fileinput.min.js"></script>
	<script type="text/javascript" src="/js/layui.js"></script>
	<script type="text/javascript" src="/js/plugins/fileinput/locales/zh.js"></script>
<script type="text/javascript">

	// 文件上传
	layui.use('upload', function() {
		uploader = layui.upload.render({
			elem : '#moneyAmountFile', // 绑定元素
			url : '/pay/payQrConfig/uploadQrs/taobao' ,// 上传接口
			size : 40000,
			accept : 'file',
			before : function(obj) {
				index = layer.load(); // 上传loading
			},
			done : function(r) {
				layer.close(index);
				layer.msg(r.msg);
				reLoad();

			},
			error : function(r) {
				layer.msg(r.msg);
			}
		});
	});

	// 文件上传
	layui.use('upload', function() {
		uploader = layui.upload.render({
			elem : '#moneyAmountFileZip', // 绑定元素
			url : '/pay/payQrConfig/uploadQrs/taobaofile' ,// 上传接口
			size : 40000,
			accept : 'file',
			before : function(obj) {
				index = layer.load(); // 上传loading
			},
			done : function(r) {
				layer.close(index);
				layer.msg(r.msg);
				reLoad();

			},
			error : function(r) {
				layer.msg(r.msg);
			}
		});
	});
</script>
</body>
</html>